﻿#ifndef CINTERFACE_H
#define CINTERFACE_H

#include "CInterface_global.h"

#ifdef __cplusplus
extern "C" {
#endif

/// \author zliming 9169778@qq.com
/// \brief 显示中心简介
/// \date [3/23/2011]
CINTERFACESHARED_EXPORT bool    ShowIntroduction();

/// \author zliming 9169778@qq.com
/// \brief 暂停服务
/// \date [3/23/2011]
CINTERFACESHARED_EXPORT bool    PauseService(const char* pauseType);

/// \author zliming 9169778@qq.com
/// \brief 显示服务人员信息
/// \date [3/23/2011]
struct ServiceInfoData {
    char        idUser[16];     //工号
    char        idService[16];  //排队号
    char        idProject[5];   //办理的项目名称
};
CINTERFACESHARED_EXPORT bool    ServiceInfo(ServiceInfoData*);

/// \author zliming 9169778@qq.com
/// \brief 对服务进行评价
/// \date [3/23/2011]
struct AppraiseData {
    char        idUser[16];     //工号
    char        serviceGuid[64];//服务标识 <日期>_<排队号>
};
CINTERFACESHARED_EXPORT bool    Appraise(AppraiseData*);

/// \author zliming 9169778@qq.com
/// \brief 查看票号当前的身份证信息
/// \date [7/7/2011]
/// \param idService  票号
CINTERFACESHARED_EXPORT bool    ViewPerson(char idService[100]);

/// \author zliming 9169778@qq.com
/// \brief 判断指定页面是否在评价器上显示
/// \date [6/26/2012]
/// \param page  页面名字
CINTERFACESHARED_EXPORT int     IsPageVisible(const char* page);


/// \author zliming 9169778@qq.com
/// \brief 发送截屏数据
/// \date [6/26/2012]
/// \param buffer  截屏数据流
CINTERFACESHARED_EXPORT bool    SendCaptureData(const class QBuffer& buffer);

/// \author zliming 9169778@qq.com
/// \brief 关闭截屏数据
/// \date [6/27/2012]
CINTERFACESHARED_EXPORT bool    CloseCapturePage();

/// \author zliming 9169778@qq.com
/// \brief 服务开始
/// \date [6/23/2014]
CINTERFACESHARED_EXPORT bool    ServiceStart(const char* userID);

/// \author zliming 9169778@qq.com
/// \brief 服务取消
/// \date [6/23/2014]
/// CINTERFACESHARED_EXPORT bool     ServiceCancel();

/// \author zliming 9169778@qq.com
/// \brief 服务结束
/// \date [6/23/2014]
CINTERFACESHARED_EXPORT bool    ServiceEnd(const char* userID);

/// \author zliming 9169778@qq.com
/// \brief 取评价器返回数据
/// \date [9/16/2015]
CINTERFACESHARED_EXPORT int     GetMessage(char* msg);

/// \author zliming 9169778@qq.com
/// \brief 取评价器返回数据
/// \date [9/16/2015]
CINTERFACESHARED_EXPORT char*   CityUserLogin(const char* username, const char* passwd);

/// \author 付志闯 1984136955@qq.com
/// \brief 有新的等待时，评价器进行语音提醒
/// \date [7/16/2019]
CINTERFACESHARED_EXPORT bool    WaitSound();//有新的等待时，评价器进行语音提醒

#ifdef __cplusplus
}
#endif

#endif // CINTERFACE_H
